import { createSlice } from '@reduxjs/toolkit'

export const homeSlice=createSlice({
    name:"home",
    initialState:{
        start:"北京",
        end:"三亚",
        date:"2025/2/27"
    },
    reducers:{
        getDate(state,action){
            state.date=action.payload.date
        }
    }
})
export const {getDate}=homeSlice.actions